
#ifndef EXCEPTION_H_
#define EXCEPTION_H_

namespace p2 {

/*
 * REF: http://code.google.com/p/faqe/source/browse/Faqe/NotImplementedException.cpp?r=58d881c08bf87ead9026416dfd476f2228f9f963
 */
class NotImplementedException: public std::runtime_error
{
public:
	NotImplementedException() : std::runtime_error("NotImplementedException") { }
};

class ExitException: public std::runtime_error
{
public:
	ExitException(String const& reason) : std::runtime_error("ExitException: " + reason) { }
};

} /* namespace p2 */

#endif	//EXCEPTION_H_
